package com.zb.Service;

import java.util.List;

import com.zb.entity.Department;


/**
 * OaDepartment entity. @author MyEclipse Persistence Tools
 */

public interface DepartmentService{
	
	public List<Department> getTree();
	public void findChild(Department dept);
	
	public List<Department> getTree2();
	public void findChild2(Department dept);
	
	public void addRootNode(Department dept);
	public void addChildNode(Department dapt);
	
	public void updateRootNode(Department dept);
	public void updateChildNode(Department dept);
	public void deleteNode(int id);
	public Department getDeptById(int id);
	public int hasChild(int id);
}